<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
	</head>
	<body>
		<div id="app">
			{{message}}
		</div>
		
		<script>			
			var app = Vue.createApp({
				data(){
					return {"message":"Hello World!"}
				},
				beforeCreate(){
					console.log('创建前')
				},
				created(){
					console.log('创建后')
				},
				beforeMount(){
					console.log('挂载前')
				},
				mounted(){
					console.log('挂载后')
				},
				beforeUnmonted(){
					console.log('取消挂载前')
				},
				unmounted(){
					console.log('取消挂载后')
				},
				beforeUpdate(){
					console.log('更新前')
				},
				updated(){
					console.log('更新完')
				}
			});
			var vm = app.mount("#app")
		</script>
	</body>
</html>
